﻿@using QLDV.Models
@model QLDV.ViewModels.LoaiCSDModel
<script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.21.custom.min.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    

@{
    List<SelectListItem> capQl = (List<SelectListItem>)ViewData["capQL"];
    
}

@using (Html.BeginForm("Create", "LoaiCSD", FormMethod.Post, new { id = "frmData" }))
{
    <div class="edit-set" style="width:100%">
       
            <div class= "edit-label">
                @Html.LabelFor(m => m.Name)
            </div>
            <div class= "editor-field">
                @Html.EditorFor(m => m.Name)
                <div class="error">@Html.ValidationMessageFor(m => m.Name)</div>
            </div>

            <div class= "edit-label">
                @Html.LabelFor(m => m.Desc)
            </div>
            <div class= "editor-field">
                @Html.TextAreaFor(m => m.Desc, new { @rows = "5", cols = "40" })
            </div>

            <div class= "edit-label">
                @Html.LabelFor(m => m.Id_LoaiCSDQL)
            </div>
            <div class= "editor-field">
                @Html.DropDownListFor(m => m.Id_LoaiCSDQL, capQl, new { style = "width:100%" })
            </div>

            <table>
                <tr align=center>
                    <th>@Html.LabelFor(m => m.DoanPhi)</th>
                    <th>@Html.LabelFor(m => m.CoChinhThuc)</th>
                    <th>@Html.LabelFor(m => m.DoanVien)</th>
                </tr>
                <tr align=center>
                    <td>@Html.CheckBoxFor(m => m.DoanPhi)</td>
                    <td>@Html.CheckBoxFor(m => m.CoChinhThuc)</td>
                    <td>@Html.CheckBoxFor(m => m.DoanVien)</td>
                </tr>
            </table>
            <div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
                <div class="ui-dialog-buttonset">
                    <button type="submit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false">
                        <span class="ui-button-text">Lưu</span>
                    </button>
                </div>
            </div>
    </div>
   
}
